<?php

use think\migration\Migrator;

class AlterCouponProductAddTypeid extends Migrator
{
    public function up()
    {
        $this->table('coupon_product')
            ->addColumn('type_id', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '关联品牌分类表id'])
            ->update();
    }

    public function down()
    {
        $this->table('coupon_product')->removeColumn('type_id');
    }
}
